//
//  AppDelegate.m
//  HMMeituanHD
//
//  Created by apple on 2017/5/16.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "AppDelegate.h"
#import "HMHomeViewController.h"
#import "HMNavigationController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    //创建window并且赋值  纯代码开发
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    HMHomeViewController *homeVc = [HMHomeViewController new];
    
    self.window.rootViewController = [[HMNavigationController alloc] initWithRootViewController:homeVc];
    
    [self.window makeKeyAndVisible];
    
    return YES;
}

////设置应用支持的设备朝向
//- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
//    
//    //如果项目中横竖屏情况始终不变,则直接可以在info,.plist中设置对应的选项(general中也可以设置),如果需要动态修改项目的整体支持方向,则需要通过设置该方法的返回值来更新
//    return UIInterfaceOrientationMaskPortrait;
//}


@end
